<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered xsui-table-tree">
    <thead>
        <tr>
            <th>名称</th>
            <th>排序</th>
            <th>前台显示</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <foreach name="tree" item="vo">
        <tr data-key="{$vo.id}" class="xsui-table-tree-l1">
            <td class="title">
                <i class="prefix"></i>{$vo.title}
                <a href="{:U('Knowledge/document_list','category_id='.$vo['id'])}" class="xsui-icon-only" data-id="{$vo.id}" title="管理内容--{$vo.title}"><i class="fa fa-folder-open-o"></i></a>
            </td>
            <td class="sort"><input type="text" value="{$vo.sort}" size="3" data-value="{$vo.sort}" data-url="{:U('change_sort','id='.$vo['id'].'&sort=varsort')}" title="更改后,鼠标点击页面任意位置即可自动生效" /></td>
            <td class="status"><a href="{:U('change_status','id='.$vo['id'].'&status=varstatus')}" data-value="{$vo.status}" title="点击隐藏" class="xsui-success"><i class="fa fa-check fa-fw"></i></a></td>
            <td>{$vo.create_time}</td>
            <td>
                <ul class="xsui-operate-group">
                    <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                        <ul>
                            <li><a href="{:U('category_edit','pid='.$vo['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo.id}" title="添加子类别--{$vo.title}"><i class="fa fa-plus fa-fw"></i>添加</a></li>
                            <li><a href="{:U('category_edit','id='.$vo['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo.id}" title="编辑 {$vo.title}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                            <li><a href="{:U('category_delete','id='.$vo['id'])}" class="xsui-lnk-remove" data-id="{$vo.id}" title="删除 {$vo.title}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                            <li><a href="{:U('category_copy','id='.$vo['id'])}" class="lnk-copy" data-dialog="{title:'复制'}"><i class="fa fa-copy fa-fw"></i>复制</a></li>
                        </ul>
                    </li>
                </ul>
            </td>
        </tr>
        <foreach name="vo['children']" item="vo2">
            <tr data-key="{$vo2.id}" class="xsui-table-tree-l2">
                <td class="title">
                    <i class="prefix"></i>{$vo2.title}
                    <a href="{:U('Knowledge/document_list','category_id='.$vo2['id'])}" class="xsui-icon-only" data-id="{$vo2.id}" title="管理内容--{$vo2.title}"><i class="fa fa-folder-open-o"></i></a>
                </td>
                <td class="sort"><input type="text" value="{$vo2.sort}" size="3" data-value="{$vo2.sort}" data-url="{:U('change_sort','id='.$vo2['id'].'&sort=varsort')}" title="更改后,鼠标点击页面任意位置即可自动生效" /></td>      
                <td class="status"><a href="{:U('change_status','id='.$vo2['id'].'&status=varstatus')}" data-value="{$vo2.status}" title="点击隐藏" class="xsui-success"><i class="fa fa-check fa-fw"></i></a></td>
                <td>{$vo2.create_time}</td>
                <td>
                    <ul class="xsui-operate-group">
                        <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                            <ul>
                                <li><a href="{:U('category_edit','pid='.$vo2['id'])}" class="xsui-lnk-edit" data-id="{$vo2.id}" title="添加子类别--{$vo2.title}"><i class="fa fa-plus fa-fw"></i>添加</a></li>
                                <li><a href="{:U('category_edit','id='.$vo2['id'])}" class="xsui-lnk-edit" data-id="{$vo2.id}" title="编辑 {$vo2.title}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                                <li><a href="{:U('category_delete','id='.$vo2['id'])}" class="xsui-lnk-remove" data-id="{$vo2.id}" title="删除 {$vo2.title}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                                <li><a href="{:U('category_copy','id='.$vo2['id'])}" class="xsui-lnk-edit" data-dialog="{title:'复制'}"><i class="fa fa-copy fa-fw"></i>复制</a></li>
                            </ul>
                        </li>
                    </ul>
                </td>
            </tr>
            <foreach name="vo2['children']" item="vo3">
                <tr data-key="{$vo3.id}" class="xsui-table-tree-l3">
                    <td class="title">
                        <i class="prefix"></i>{$vo3.title}
                        <a href="{:U('Knowledge/document_list','category_id='.$vo3['id'])}" class="xsui-icon-only" data-id="{$vo3.id}" title="管理内容--{$vo3.title}"><i class="fa fa-folder-open-o"></i></a>
                    </td>
                    <td class="sort"><input type="text" value="{$vo3.sort}" size="3" data-value="{$vo3.sort}" data-url="{:U('change_sort','id='.$vo3['id'].'&sort=varsort')}" title="更改后,鼠标点击页面任意位置即可自动生效" /></td>
                    <td class="status"><a href="{:U('change_status','id='.$vo3['id'].'&status=varstatus')}" data-value="{$vo.status}" title="点击隐藏" class="xsui-success"><i class="fa fa-check fa-fw"></i></a></td>
                    <td>{$vo3.create_time}</td>
                    <td>
                        <ul class="xsui-operate-group">
                            <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                                <ul>
                                    <li><a href="{:U('category_edit','id='.$vo3['id'])}" class="xsui-lnk-edit" data-id="{$vo3.id}" title="编辑 {$vo3.title}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                                    <li><a href="{:U('category_delete','id='.$vo3['id'])}" class="xsui-lnk-remove" data-id="{$vo3.id}" title="删除 {$vo3.title}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                                    <li><a href="{:U('category_copy','id='.$vo3['id'])}" class="xsui-lnk-edit" data-dialog="{title:'复制'}"><i class="fa fa-copy fa-fw"></i>复制</a></li>
                                </ul>
                            </li>
                        </ul>
                    </td>
                </tr>
            </foreach>
        </foreach>
    </foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>